#include "com.h"

uint32_t SerialKeyPressed(uint8_t *key){
	if(HAL_UART_Receive(&huart1,key,1,0xaa) == HAL_OK){
		return 1;
	}
	else{
		return 0;
	}
}

void SerialPutChar(uint8_t c){
	HAL_UART_Transmit(&huart1,&c,1,0xaa);
}
